@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
Show PurchaseCar [{{  $purchase_car->id }}] ::
@parent
@stop

    @section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li><a href="{{  route('car_balance.purchase_car.index') }}"><i class="icon-home"></i> PurchaseCar list</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">Show PurchaseCar [{{  $purchase_car->id }}] </li>
    @stop

@section('content.main')

<p>{{ link_to_route('car_balance.purchase_car.index', 'Back to PurchaseCar list', null, array('class' => 'btn btn-info')) }}</p>

<div class="row-fluid">
<table class="table table-bordered">

</table>

    <table class="table table-striped table-bordered">
        <col width="35%">
        <col width="60%">
        <tbody>
                <tr> <th>Id</th> <td>{{  $purchase_car->id }}</td> </tr>
                <tr> <th>Purchase_Date</th> <td>{{  $purchase_car->purchase_date }}</td> </tr>
                <tr> <th>Car_Maker</th> <td>{{  $purchase_car->car_maker }}</td> </tr>
                <tr> <th>Car_Type</th> <td>{{  $purchase_car->car_type }}</td> </tr>
                <tr> <th>Model_Year</th> <td>{{  $purchase_car->model_year }}</td> </tr>
                <tr> <th>Chasis_Number</th> <td>{{  $purchase_car->chasis_number }}</td> </tr>
                <tr> <th>Color</th> <td>{{  $purchase_car->color }}</td> </tr>
                <tr> <th>Number_Plate_Flag</th> <td>{{  $purchase_car->number_plate_flag }}</td> </tr>
                <tr> <th>Purchase_Price</th> <td>{{  $purchase_car->purchase_price }}</td> </tr>
                <tr> <th>Purchase_Price_Fixed</th> <td>{{  $purchase_car->purchase_price_fixed }}</td> </tr>
                <tr> <th>Consumption_Tax</th> <td>{{  $purchase_car->consumption_tax }}</td> </tr>
                <tr> <th>Recycle_Fee</th> <td>{{  $purchase_car->recycle_fee }}</td> </tr>
                <tr> <th>Car_Certification</th> <td>{{  $purchase_car->car_certification }}</td> </tr>
                <tr> <th>Auction_Comission</th> <td>{{  $purchase_car->auction_comission }}</td> </tr>
                <tr> <th>Transport_Fee_Japan</th> <td>{{  $purchase_car->transport_fee_japan }}</td> </tr>
                <tr> <th>Transport_Fee_Japan_Fxd</th> <td>{{  $purchase_car->transport_fee_japan_fxd }}</td> </tr>
                <tr> <th>Nmh_Commision</th> <td>{{  $purchase_car->nmh_commision }}</td> </tr>
                <tr> <th>Tic_June_Flag</th> <td>{{  $purchase_car->tic_june_flag }}</td> </tr>
                <tr> <th>Exhibit_Number</th> <td>{{  $purchase_car->exhibit_number }}</td> </tr>
                <tr> <th>Burtgel_Solih</th> <td>{{  $purchase_car->burtgel_solih }}</td> </tr>
                <tr> <th>Export_Erasure</th> <td>{{  $purchase_car->export_erasure }}</td> </tr>
                <tr> <th>Car_Tax_Cancel</th> <td>{{  $purchase_car->car_tax_cancel }}</td> </tr>
                <tr> <th>Send_Export_Erasure_To_Transport_Company</th> <td>{{  $purchase_car->send_export_erasure_to_transport_company }}</td> </tr>
                <tr> <th>Fax_Export_Erasure_To_Auction</th> <td>{{  $purchase_car->fax_export_erasure_to_auction }}</td> </tr>
                <tr> <th>Mail_Export_Erasure_To_Nmc</th> <td>{{  $purchase_car->mail_export_erasure_to_nmc }}</td> </tr>
                <tr> <th>Car_Liability_Insurance_Cancel</th> <td>{{  $purchase_car->car_liability_insurance_cancel }}</td> </tr>
                <tr> <th>Recycle</th> <td>{{  $purchase_car->recycle }}</td> </tr>
                <tr> <th>Comment</th> <td>{{  $purchase_car->comment }}</td> </tr>
                <tr> <th>Cancel_Flag</th> <td>{{  $purchase_car->cancel_flag }}</td> </tr>
                <tr> <th>Cancel_Fee</th> <td>{{  $purchase_car->cancel_fee }}</td> </tr>
                <tr> <th>Re_Auction_Flag</th> <td>{{  $purchase_car->re_auction_flag }}</td> </tr>
                <tr> <th>Auction_Penalty</th> <td>{{  $purchase_car->auction_penalty }}</td> </tr>
        
                                    <tr>
                    <th>Customer</th>
                    <td>{{  $purchase_car->customer()->first() ? link_to_route('car_balance.customer.show', $purchase_car->customer()->first()->name, array('id' => $purchase_car->customer()->first()->id), array()) : 'NULL' }}</td>
                </tr>
                            <tr>
                    <th>Vanning Company Branch</th>
                    <td>{{  $purchase_car->vanningCompany()->first() ? link_to_route('car_balance.vanning_company_branch.show', $purchase_car->vanningCompany()->first()->name, array('id' => $purchase_car->vanningCompany()->first()->id), array()) : 'NULL' }}</td>
                </tr>
                            <tr>
                    <th>Car Auction</th>
                    <td>{{  $purchase_car->carAuction()->first() ? link_to_route('car_balance.car_auction.show', $purchase_car->carAuction()->first()->name, array('id' => $purchase_car->carAuction()->first()->id), array()) : 'NULL' }}</td>
                </tr>
                            <tr>
                    <th>Service Company</th>
                    <td>{{  $purchase_car->serviceCompany()->first() ? link_to_route('car_balance.service_company.show', $purchase_car->serviceCompany()->first()->name, array('id' => $purchase_car->serviceCompany()->first()->id), array()) : 'NULL' }}</td>
                </tr>
                    
        <tr><td colspan="2">
                                    @if ( ! is_null($purchase_car->deleted_at))
                    <a href="{{  route('car_balance.purchase_car.restore', $purchase_car->id) }}" class="btn btn-mini btn-warning">Restore</a>
                    @else
                    <a href="{{  route('car_balance.purchase_car.delete', $purchase_car->id) }}" class="btn btn-mini btn-danger">Delete</a>
                    @endif
                            </td></tr>
        </tbody>
    </table>
@stop